<template>
  <div v-if="contentShow" class="pop-mask flex-center flex-align-items-center">
    <div class="main">
      <div class="title flex flex-align-items-center">
        <i class="iconfont icon-chakantiezigengduojubao"></i>
        <span class="font-18-B">提示</span>
      </div>
      <div class="content flex-center flex-column flex-align-items-center">
        <p class="name font-18">您的红人解锁额度消耗1点</p>
        <p class="desc font-10">（已解锁的不再重复扣除）</p>
        <el-checkbox v-model="currentTip" label="不再提示" />
        <p class="btn font-14 pointer" @click="contentShowChange">我知道了</p>
      </div>
    </div>
  </div>
</template>

<script setup>
import { ref } from 'vue';

const contentShow = ref(false);
const currentTip = ref(true);

const contentShowChange = () => {
  contentShow.value = false;
}
</script>

<style lang="less" scoped>
.pop-mask {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
  width: 100%;
  height: 100%;

  &::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.4;
  }

  .main {
    position: relative;
    z-index: 10;
    width: 380px;
    background: #fff;
    border-radius: 4px;

    .title {
      height: 53px;
      padding: 0 26px;
      border-bottom: 1px solid #eeeded;

      i {
        color: @main-color;
        margin-right: 16px;
        font-size: 28px;
      }

      span {
        color: #333;
      }
    }

    .content {
      height: 220px;

      .name {
        color: #666;
        margin-bottom: 4px;
      }

      .desc {
        color: #999;
        margin-bottom: 16px;
      }

      .btn {
        width: 116px;
        height: 32px;
        background: #fff;
        border: 1px solid @main-color;
        border-radius: 4px;
        color: @main-color;
        transition: all .3s;
        margin-top: 24px;
        text-align: center;
        line-height: 30px;

        &:hover {
          background: @main-color;
          color: #fff;
        }
      }
    }
  }
}
</style>
